import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';

// ui库
// import { Button } from 'antd-mobile';

// 组件
import Home from "./pages/Home";
import CityList from './pages/CityList';
import Map from './pages/Map';
function App() {
  return (
    <Router>
      <div className="App">
        {/* 重定向 */}
        <Route exact path="/" render={() => <Redirect to="/home" />}></Route>
        <Route path="/home" component={Home}></Route>
        <Route path="/citylist" component={CityList}></Route>
        <Route path="/map" component={Map}></Route>
      </div>
    </Router>
  );
}
export default App;
